import request from '@/utils/request.js'

/**
 * 获取歌单的数据
 * @param {Object} params {limit 每次获取的条数}
 * @returns promise
 */
export function getSongList (params) {
  return request({
    url: '/personalized',
    params
  })
}

/**
 * 获取最新歌单
 * @param {Object} params {limit 每次获取的条数}
 * @returns promise
 */
export function getNewSongList (params) {
  return request({
    url: '/personalized/newsong',
    params
  })
}

/**
 * 获取所有榜单
 * @param {*}
 * @returns
 */
export function topList () {
  return request({
    url: '/toplist/detail'
  })
}
